from django.contrib import admin
from django.urls import path, include
from .import views
from rest_framework.routers import DefaultRouter

from rest_framework_simplejwt.views import TokenObtainPairView

urlpatterns = [
    #127.0.0.1:8000/user/verification
    #    /verification/register/uuid
    # path("verification/register/<uuid:uuid>/", views.ImageVerifyView.as_view()),
    # path("verification/login/<uuid:uuid>/", views.ImageVerifyView.as_view()),
    path("verification/<str:func>/<uuid:uuid>/", views.ImageVerifyView.as_view()),
    # 127.0.0.1:user/login
    path("login/", views.MyTokenObtainViews.as_view()),
    # path("login/", views.TokenObtainPairView.as_view()),


]
router = DefaultRouter()
router.register('users', views.UserViewSet)
router.register('area', views.AreaViewSet)
router.register('address', views.AddressViewSet)
urlpatterns += router.urls
